package com.have.blog;

import com.have.blog.sprider.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;

@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class HaveblogSpiderApplication {

	public static void main(String[] args) {
		SpringApplication.run(HaveblogSpiderApplication.class, args);
	}

	@Bean
	public IdWorker idWorker() {
		return new IdWorker();
	}
}
